import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView
    // },
    // {
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/Login.vue'),
      // path: '/',
      // name: 'MainView',
      // component: () => import('../views/MainView.vue'),
    },
    {
      // path: '/Login',
      // name: 'Login',
      // component: () => import('../views/Login.vue'),
      path: '/MainView',
      name: 'MainView',
      component: () => import('../views/MainView.vue'),

      children: [

        {
          path: '/Unit',
          name: 'Unit',
          component: () => import('../views/Organization/Unit.vue')
        },
        {
          path: '/UnitList',
          name: 'UnitList',
          component: () => import('../views/Organization/UnitList.vue')
        },
        {
          path: '/Department',
          name: 'Department',
          component: () => import('../views/Organization/Department.vue')
        },
        {
          path: '/DepartmentList',
          name: 'DepartmentList',
          component: () => import('../views/Organization/DepartmentList.vue')
        },
        //种羊档案新增
        {
          path: '/SheepFileAddView',
          name: 'SheepFileAddView',
          component: () => import('../views/SheepFile/SheepFileAddView.vue')
        }, 
        //后裔档案新增
        {
          path: '/ProgenyFileAddView',
          name: 'ProgenyFileAddView',
          component: () => import('../views/SheepFile/ProgenyFileAddView.vue')
        }, 
        //羊只档案列表展示
        {
          path: '/SheepFileListView',
          name: 'SheepFileListView',
          component: () => import('../views/SheepFile/SheepFileListView.vue')
        },
        //羊只档案详情
        {
          path: '/SheepFiledetail',
          name: 'SheepFiledetail',
          component: () => import('../views/SheepFile/SheepFiledetail.vue')
        },
        
        //种公期初
        {
          path: '/MalePeriodicList',
          name: 'MalePeriodicList',
          component: () => import('../views/Beginning/MalePeriodicList.vue')
        },
        //种公期初新增
        {
          path: '/MalePeriodicAddView',
          name: 'MalePeriodicAddView',
          component: () => import('../views/Beginning/MalePeriodicAddView.vue')
        },
        //种母期初表
        {
          path: '/FemalePeriodicAddView',
          name: 'FemalePeriodicAddView',
          component: () => import('../views/Beginning/FemalePeriodicAddView.vue')
        },
        //种母期初列表
        {
          path: '/FemalePeriodicList',
          name: 'FemalePeriodicList',
          component: () => import('../views/Beginning/FemalePeriodicList.vue')
        },
        //后裔期初新增
        {
          path: '/ProgenyPeriodicAddView',
          name: 'ProgenyPeriodicAddView',
          component: () => import('../views/Beginning/ProgenyPeriodicAddView.vue')
        },
        //后裔期初列表
        {
          path: '/ProgenyPeriodicList',
          name: 'ProgenyPeriodicList',
          component: () => import('../views/Beginning/ProgenyPeriodicList.vue')
        },
         //羊场设置
         
         {
          path: '/SheepFarmList',
          name: 'SheepFarmList',
          component: () => import('../views/Organization/SheepFarmList.vue')
        },










        // 种羊历史
        {
          path: '/SheepHistorySelect',
          name: 'SheepHistorySelect',
          component: () => import('../views/History/SheepHistorySelectView.vue')
        },
        // 种母分娩表
        {
          path: '/SheepChildbirthSelect',
          name: 'SheepChildbirthSelect',
          component: () => import('../views/History/SheepChildbirthSelectView.vue')
        },
        // 种羊配种表
        {
          path: '/SheepHybridizationSelect',
          name: 'SheepHybridizationSelect',
          component: () => import('../views/History/SheepHybridizationSelectView.vue')
        },
        // 种母妊检表
        {
          path: '/SheepPregnancySelect',
          name: 'SheepPregnancySelect',
          component: () => import('../views/History/SheepPregnancySelectView.vue')
        },
        // 种羊断奶表
        {
          path: '/SheepWeaningSelect',
          name: 'SheepWeaningSelect',
          component: () => import('../views/History/SheepWeaningSelectView.vue')
        },
      ]
    }
  ]
})

export default router
